﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Skyhook.AI
{
    static class MoveDirection
    {
        public const int Unknown = -1;
        public const int SE = 0;
        public const int S = 1;
        public const int SW = 2;
        public const int W = 3;
        public const int NW = 4;
        public const int N = 5; 
        public const int NE = 6;
        public const int E = 7;

        public const int MaxDirection = 7;
        public const int MinDirection = 0;

        public static int[] To32Angle = {0, 4, 8, 12, 16, 20, 24, 28};

        public static int[] XShift = {1, 1, 0, -1, -1, -1, 0, 1};
        public static int[] YShift = {0, 1, 1, 1, 0, -1, -1, -1};
        public static int[,] Shifts = {
                                            {0,7,1,6,2,5,3,4},
                                            {1,0,2,7,3,6,4,5},
                                            {2,1,3,0,4,7,5,6},
                                            {3,2,4,1,5,0,6,7},
                                            {4,3,5,2,6,1,7,0},
                                            {5,4,6,3,7,2,0,1},
                                            {6,5,7,4,0,3,1,2},
                                            {7,6,0,5,1,4,2,3}
                                         };
    }
}
